package cn.cmcc.intertelecom.bean;

import javax.validation.constraints.Pattern;

public class Department {
    private Integer id;

    @Pattern(regexp="\\S{1,}",message="用户名不能为空")
    private String deptName;

    private String deptTelephone;

    private String deptPhone;

    private String deptFax;

    private String deptRemark;

    private Integer userId;
    
    private User user;
    
    

    public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getDeptTelephone() {
        return deptTelephone;
    }

    public void setDeptTelephone(String deptTelephone) {
        this.deptTelephone = deptTelephone == null ? null : deptTelephone.trim();
    }

    public String getDeptPhone() {
        return deptPhone;
    }

    public void setDeptPhone(String deptPhone) {
        this.deptPhone = deptPhone == null ? null : deptPhone.trim();
    }

    public String getDeptFax() {
        return deptFax;
    }

    public void setDeptFax(String deptFax) {
        this.deptFax = deptFax == null ? null : deptFax.trim();
    }

    public String getDeptRemark() {
        return deptRemark;
    }

    public void setDeptRemark(String deptRemark) {
        this.deptRemark = deptRemark == null ? null : deptRemark.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

	@Override
	public String toString() {
		return "Department [id=" + id + ", deptName=" + deptName + ", deptTelephone=" + deptTelephone + ", deptPhone="
				+ deptPhone + ", deptFax=" + deptFax + ", deptRemark=" + deptRemark + ", userId=" + userId + ", user="
				+ user + "]";
	}
    
}